package Frames;

import Controllers.StoreEntry_Controller;
import Controllers.StoreEntry_Validator;
import DAO.StoreEntry_Dao;
import javax.swing.JOptionPane;

public class StoreEntry_Frame extends javax.swing.JFrame {

    public StoreEntry_Frame() {
        initComponents();
        jAddress.setName("jAddress");
        jCity.setName("jCity");
        jStorePhone.setName("jStorePhone");
        jFloors.setName("jFloors");
        jSeats.setName("jSeats");
        jParkingSpots.setName("jParkingSpots");
        jParking.setName("jParking");
        jDaysOpen.setName("jDaysOpen");
        jStoreName.setName("jStoreName");
        messageLabel.setVisible(false);
    }

    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel5 = new javax.swing.JLabel();
        jLabel7 = new javax.swing.JLabel();
        jPanel1 = new javax.swing.JPanel();
        jCity = new javax.swing.JTextField();
        jStorePhone = new javax.swing.JTextField();
        daysOpenLabel = new javax.swing.JLabel();
        seatsLabel = new javax.swing.JLabel();
        parkingLabel = new javax.swing.JLabel();
        jSeats = new javax.swing.JTextField();
        jParkingSpots = new javax.swing.JTextField();
        jDaysOpen = new javax.swing.JTextField();
        jFloors = new javax.swing.JTextField();
        floorsLabel = new javax.swing.JLabel();
        parkingSpotsLabel = new javax.swing.JLabel();
        cityLabel = new javax.swing.JLabel();
        jAddress = new javax.swing.JTextField();
        infoLabel = new javax.swing.JLabel();
        storePhoneLabel = new javax.swing.JLabel();
        jParking = new javax.swing.JTextField();
        addressLabel = new javax.swing.JLabel();
        jStoreName = new javax.swing.JTextField();
        storeNamelabel = new javax.swing.JLabel();
        commitButton = new javax.swing.JButton();
        backButton = new javax.swing.JButton();
        messageLabel = new javax.swing.JLabel();

        jLabel5.setText("jLabel5");

        jLabel7.setText("jLabel7");

        setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
        setTitle("Entry");
        setBounds(new java.awt.Rectangle(200, 50, 0, 0));
        setResizable(false);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "StoreEntry", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Vivaldi", 0, 36), new java.awt.Color(0, 0, 102))); // NOI18N

        jCity.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jCityFocusGained(evt);
            }
        });

        jStorePhone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jStorePhoneFocusGained(evt);
            }
        });

        daysOpenLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        daysOpenLabel.setText("DaysOpen");

        seatsLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        seatsLabel.setText("Seats");

        parkingLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        parkingLabel.setText("Parking");

        jSeats.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jSeatsFocusGained(evt);
            }
        });

        jParkingSpots.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jParkingSpotsFocusGained(evt);
            }
        });

        jDaysOpen.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jDaysOpenFocusGained(evt);
            }
        });

        jFloors.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jFloorsFocusGained(evt);
            }
        });

        floorsLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        floorsLabel.setText("Floors");

        parkingSpotsLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        parkingSpotsLabel.setText("ParkingSpots");

        cityLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        cityLabel.setText("City");

        jAddress.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jAddressFocusGained(evt);
            }
        });

        infoLabel.setFont(new java.awt.Font("Comic Sans MS", 3, 18)); // NOI18N
        infoLabel.setText("Store Info");

        storePhoneLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        storePhoneLabel.setText("StorePhone");

        jParking.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jParkingFocusGained(evt);
            }
        });

        addressLabel.setFont(new java.awt.Font("Comic Sans MS", 0, 18)); // NOI18N
        addressLabel.setText("Address");

        jStoreName.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusGained(java.awt.event.FocusEvent evt) {
                jStoreNameFocusGained(evt);
            }
        });

        storeNamelabel.setFont(new java.awt.Font("Comic Sans MS", 3, 24)); // NOI18N
        storeNamelabel.setText("Store Name");

        commitButton.setFont(new java.awt.Font("Comic Sans MS", 0, 12)); // NOI18N
        commitButton.setText("Commit");
        commitButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                commitButtonActionPerformed(evt);
            }
        });

        backButton.setFont(new java.awt.Font("Comic Sans MS", 0, 12)); // NOI18N
        backButton.setText("Back");
        backButton.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                backButtonActionPerformed(evt);
            }
        });

        messageLabel.setFont(new java.awt.Font("Andalus", 0, 14)); // NOI18N
        messageLabel.setForeground(new java.awt.Color(255, 0, 0));
        messageLabel.setText("YOU TYPED SOMETHING WRONG , TRY AGAIN");

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGap(150, 150, 150)
                .addComponent(infoLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 110, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(44, 44, 44)
                        .addComponent(storeNamelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 156, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 31, Short.MAX_VALUE)
                        .addComponent(jStoreName, javax.swing.GroupLayout.PREFERRED_SIZE, 307, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addContainerGap()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(daysOpenLabel)
                                    .addComponent(parkingSpotsLabel)
                                    .addComponent(parkingLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jParking, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jParkingSpots, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jDaysOpen, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(addressLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 94, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jAddress, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addGap(17, 17, 17)
                                .addComponent(messageLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(commitButton)
                                .addGap(32, 32, 32)
                                .addComponent(backButton))
                            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel1Layout.createSequentialGroup()
                                .addComponent(cityLabel)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jCity, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(storePhoneLabel, javax.swing.GroupLayout.PREFERRED_SIZE, 114, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addComponent(jStorePhone, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                                    .addComponent(seatsLabel)
                                    .addComponent(floorsLabel))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(jSeats, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(jFloors, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.PREFERRED_SIZE, 245, javax.swing.GroupLayout.PREFERRED_SIZE))))))
                .addContainerGap())
        );
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(294, 294, 294)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jAddress, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(addressLabel))
                        .addGap(27, 27, 27)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jCity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(cityLabel)))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(67, 67, 67)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(storeNamelabel, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jStoreName, javax.swing.GroupLayout.PREFERRED_SIZE, 45, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(100, 100, 100)
                        .addComponent(infoLabel)))
                .addGap(28, 28, 28)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(storePhoneLabel)
                    .addComponent(jStorePhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGap(17, 17, 17)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(floorsLabel)
                    .addComponent(jSeats, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(28, 28, 28)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(seatsLabel)
                            .addComponent(jFloors, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGap(33, 33, 33)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jParking, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(parkingLabel))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 41, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jParkingSpots, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(parkingSpotsLabel))
                        .addGap(33, 33, 33)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jDaysOpen, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(daysOpenLabel))
                        .addGap(101, 101, 101))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(commitButton)
                            .addComponent(backButton)
                            .addComponent(messageLabel))
                        .addContainerGap())))
        );

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addContainerGap()
                .addComponent(jPanel1, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addContainerGap())
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, layout.createSequentialGroup()
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap())
        );

        jPanel1.getAccessibleContext().setAccessibleName("jPanel1");

        pack();
    }// </editor-fold>//GEN-END:initComponents

    private void commitButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_commitButtonActionPerformed

        StoreEntry_Controller controller = new StoreEntry_Controller(new StoreEntry_Dao());
        StoreEntry_Validator validator = new StoreEntry_Validator();
        try {
            boolean storentry = validator.validateStoreEntry(jStoreName.getText(), jAddress.getText(), jCity.getText(), jStorePhone.getText(), jFloors.getText(), jSeats.getText(), jParking.getText(), jParkingSpots.getText(), jDaysOpen.getText());
            if (storentry == true) {

                controller.controlStoreEntry(jStoreName.getText(), jAddress.getText(), jCity.getText(), jStorePhone.getText(), jFloors.getText(), jSeats.getText(), jParking.getText(), jParkingSpots.getText(), jDaysOpen.getText());
                this.dispose();
                Personal_Frame x = new Personal_Frame();
                x.setVisible(true);
            } else {
                messageLabel.setVisible(true);
            }
        } catch (IllegalArgumentException e) {
            JOptionPane.showMessageDialog(null, "Error in StoreEntry_Frame");
        }
    }//GEN-LAST:event_commitButtonActionPerformed

    private void backButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_backButtonActionPerformed
        this.dispose();
        Personal_Frame frame = new Personal_Frame();
        frame.setVisible(true);
    }//GEN-LAST:event_backButtonActionPerformed

    private void jStoreNameFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jStoreNameFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jStoreNameFocusGained

    private void jAddressFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jAddressFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jAddressFocusGained

    private void jCityFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jCityFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jCityFocusGained

    private void jStorePhoneFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jStorePhoneFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jStorePhoneFocusGained

    private void jSeatsFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jSeatsFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jSeatsFocusGained

    private void jFloorsFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jFloorsFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jFloorsFocusGained

    private void jParkingFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jParkingFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jParkingFocusGained

    private void jParkingSpotsFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jParkingSpotsFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jParkingSpotsFocusGained

    private void jDaysOpenFocusGained(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_jDaysOpenFocusGained
        messageLabel.setVisible(false);
    }//GEN-LAST:event_jDaysOpenFocusGained

    public static void main(String args[]) {
        /* Set the Nimbus look and feel */
        //<editor-fold defaultstate="collapsed" desc=" Look and feel setting code (optional) ">
        /* If Nimbus (introduced in Java SE 6) is not available, stay with the default look and feel.
         * For details see http://download.oracle.com/javase/tutorial/uiswing/lookandfeel/plaf.html 
         */
        try {
            for (javax.swing.UIManager.LookAndFeelInfo info : javax.swing.UIManager.getInstalledLookAndFeels()) {
                if ("Nimbus".equals(info.getName())) {
                    javax.swing.UIManager.setLookAndFeel(info.getClassName());
                    break;
                }
            }
        } catch (ClassNotFoundException ex) {
            java.util.logging.Logger.getLogger(Personal_Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (InstantiationException ex) {
            java.util.logging.Logger.getLogger(Personal_Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (IllegalAccessException ex) {
            java.util.logging.Logger.getLogger(Personal_Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        } catch (javax.swing.UnsupportedLookAndFeelException ex) {
            java.util.logging.Logger.getLogger(Personal_Frame.class.getName()).log(java.util.logging.Level.SEVERE, null, ex);
        }
        //</editor-fold>

        /* Create and display the form */
        java.awt.EventQueue.invokeLater(new Runnable() {
            @Override
            public void run() {
                new StoreEntry_Frame().setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel addressLabel;
    private javax.swing.JButton backButton;
    private javax.swing.JLabel cityLabel;
    private javax.swing.JButton commitButton;
    private javax.swing.JLabel daysOpenLabel;
    private javax.swing.JLabel floorsLabel;
    private javax.swing.JLabel infoLabel;
    private javax.swing.JTextField jAddress;
    private javax.swing.JTextField jCity;
    private javax.swing.JTextField jDaysOpen;
    private javax.swing.JTextField jFloors;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JTextField jParking;
    private javax.swing.JTextField jParkingSpots;
    private javax.swing.JTextField jSeats;
    private javax.swing.JTextField jStoreName;
    private javax.swing.JTextField jStorePhone;
    private javax.swing.JLabel messageLabel;
    private javax.swing.JLabel parkingLabel;
    private javax.swing.JLabel parkingSpotsLabel;
    private javax.swing.JLabel seatsLabel;
    private javax.swing.JLabel storeNamelabel;
    private javax.swing.JLabel storePhoneLabel;
    // End of variables declaration//GEN-END:variables
}
